/*
 * UnitIdleEvent.h
 *
 *  Created on: Oct 14, 2008
 *      Author: Ryan
 */

#ifndef UNITIDLEEVENT_H_
#define UNITIDLEEVENT_H_

#include "GameEvent.h"

#include <sstream>

namespace OOInterface
{

class UnitIdleEvent: public OOInterface::GameEvent
{
public:
	UnitIdleEvent( ConstUnitPtr unit ) : _idleUnit( unit ) {}
	virtual ~UnitIdleEvent() { }

	ConstUnitPtr getIdleUnit() const { return _idleUnit; }

	virtual std::string toString() const
	{
		std::ostringstream str;
		str << "Event: Unit Idle. ( " << _idleUnit->getName() << " )";

		return str.str();
	}



private:
	ConstUnitPtr _idleUnit;
};

}

#endif /* UNITIDLEEVENT_H_ */
